//
//  FHCompose.swift
//  WeiBo
//
//  Created by qfh on 16/7/17.
//  Copyright © 2016年 qiufuhe. All rights reserved.
//

import UIKit

class FHCompose: NSObject {
    
    // 跳转控制器
    var className: String?
    // 图片
    var icon: String?
    //  文字
    var title: String?
    
    
    init(dict: [String : AnyObject]) {
     
        super.init()
        
        setValuesForKeysWithDictionary(dict)
        
        
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    /**
     读取plist 文件
     
     - returns: <#return value description#>
     */
    class func comoseLists() -> [FHCompose]{
       
        var tempArray = [FHCompose]()
        
        
        let path = NSBundle.mainBundle().pathForResource("compose.plist", ofType: nil)
        
        let array = NSArray(contentsOfFile: path!)
        
        for value in array as! [[String : AnyObject]] {
        
            
            tempArray.append(FHCompose(dict: value ))
    
        }
        
        
        return tempArray
        
    }
    
    
    
    
    
    
    
    
    

}
